<?php
namespace frontend\widget;


use yii\base\Widget;
use yii\helpers\Url;

class PagerWidget extends Widget
{

	public $pagesize = 9;
	public $page_num = 8;
	public $current_page = 1;


    public function run()
    {
       $page_num = $this->page_num;
        return <<<PAGEHEAD
 <div class="page mt20">
            <a href="">首页</a>
            <a href="">上一页</a>
            <a href="">1</a>
            <a href="">2</a>
            <a href="" class="cur">3</a>
            <a href="">4</a>
            <a href="">5</a>
            <a href="">下一页</a>
            <a href="">尾页</a>&nbsp;&nbsp;
            <span>
					<em>共{$page_num}页&nbsp;&nbsp;到第 <input type="text" class="page_num" value="3"/> 页</em>
					<a href="" class="skipsearch" href="javascript:;">确定</a>
				</span>
        </div>

PAGEHEAD;

    }
}